<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/static/admin/js/libs/modernizr.min.js"></script>
    
</head>
<body>

<!--页面顶部导航模块-->
{include file="public/top" /}

<div class="container clearfix">

	<!--页面左侧导航模块-->
	{include file="public/left" /}

    <!--页面内容部分-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:url('Index/index')}">后台</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="{:url('Config/index')}">系统配置</a><span class="crumb-step">&gt;</span><span>配置</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">

                <!--action=""表单提交到当前控制器的当前方法-->
                
                <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th class="right" width="20%">配置名称</th>
                                <th class="left">配置项值</th>
                            </tr>
                            
                            {volist name="CLIST" id="vo"  empty="暂时没有数据"}
                            <tr> 
                                <!--多行文本类型时增加td_textarea样式-->
                                <td class="right {if condition="$vo.type eq '2'"} td_textarea{/if}" > {$vo.name_cn}</td>
                                <td class="left">
                                <!--单选类型时候的可选值输出-->
                                {switch name="$vo.type"}
                                  {case value="0"}
                                      {php}
                                       if(!empty($vo['option'])){
                                          $arr = explode(",",$vo['option']);
                                          $current = $vo['value'];

                                          foreach($arr as $k=>$v){

                                            if($current!=$v){
                                              echo("<input type='radio' name=".$vo['name']." value=".$v.">&nbsp;");
                                              echo($v);
                                              echo("&nbsp;&nbsp;&nbsp;");
                                            }else{
                                              echo("<input type='radio' name=".$vo['name']." value=".$v." checked>&nbsp;");
                                              echo($v);
                                              echo("&nbsp;&nbsp;&nbsp;");
                                            }
                                          }
                                        }
                                      {/php}
                                  {/case}
                                  {case value="1"}<input class="common-text-thin required" name={$vo.name} size="50" value={$vo.value} type="text">{/case}
                                  {case value="2"}<textarea class="common-textarea field-desc" name={$vo.name} cols="30" rows="5">{$vo.value}</textarea>{/case}
                                {/switch}
                                </td>
                            </tr>
                            {/volist}
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn6 btn-primary mr10" type="submit" value="提交" >
                                    <input class="btn btn6" onclick="history.go(-1)" type="button" value="返回">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>
    </div>
    <!--/main-->
</div>

</body>
</html>